package com.kobeliu.service;

import com.kobeliu.pojo.PayResult;
import com.kobeliu.pojo.PreOrderResult;

import javax.servlet.ServletInputStream;

public interface WxOrderService {
    /**
     * 生成预订单
     * @param body
     * @param outTradeNo
     * @param totalFee
     * @return
     */
    PreOrderResult placeOrder(String body, String outTradeNo, String totalFee);

    /**
     * 判断传回的信息是不是交易成功
     * @param inputStream
     * @return
     */
    PayResult getWxPayResult(ServletInputStream inputStream);
}
